import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.SpringLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.image.BufferedImage;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Panel;
import java.awt.Font;
import java.io.File;
import java.io.IOException;

import javax.swing.JInternalFrame;
import java.awt.Toolkit;
import java.awt.SystemColor;
import java.awt.GridLayout;
import javax.swing.BoxLayout;
import javax.swing.border.LineBorder;
import javax.swing.border.CompoundBorder;
import org.eclipse.wb.swing.FocusTraversalOnArray;
import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;


public class MainMenu extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MainMenu frame = new MainMenu();
					frame.setVisible(true);
								
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MainMenu() {
		setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Deposition\\workspace\\TypingTron\\TronIcon.png"));
		setResizable(false);
		setTitle("Typing Tron 4000");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		contentPane = new JPanel();
		contentPane.setBackground(new Color(155, 80, 184));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		this.setLocationRelativeTo(null);
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBounds(188, 343, 430, 218);
		panel.setBackground(new Color(18, 107, 139));
		panel.setBorder(new CompoundBorder(new LineBorder(new Color(0, 0, 0), 3, true), new LineBorder(new Color(255, 255, 0), 3, true)));
		contentPane.add(panel);
		panel.setLayout(null);
		
		JButton btnSinglePlayer = new JButton("Single Player");
		btnSinglePlayer.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
			}
		});
		btnSinglePlayer.setBounds(65, 25, 300, 40);
		panel.add(btnSinglePlayer);
		btnSinglePlayer.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnSinglePlayer.setToolTipText("");
		
		JButton btnMultiPlayer = new JButton("Multi Player");
		btnMultiPlayer.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnMultiPlayer.setToolTipText("");
		btnMultiPlayer.setBounds(65, 89, 300, 40);
		panel.add(btnMultiPlayer);
		
		JButton btnHighScores = new JButton("High Scores");
		btnHighScores.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnHighScores.setToolTipText("");
		btnHighScores.setBounds(65, 154, 300, 40);
		panel.add(btnHighScores);
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setVerticalAlignment(SwingConstants.TOP);
		lblNewLabel.setIcon(new ImageIcon("C:\\Users\\Deposition\\workspace\\TypingTron\\menuscreenrecolorresize.png"));
		lblNewLabel.setBounds(0, 11, 806, 321);
		contentPane.add(lblNewLabel);
	}
}
